package com.ciwong.epaper.modules.me.bean;

import com.ciwong.mobilelib.bean.BaseBean;
import com.ciwong.epaper.bean.SelectObject;

import java.util.List;

/**
 * 班级
 *
 * @author sugy
 * @version ciwong v.1.0 2015/9/10 15:11
 * @since ciwong v.1.0
 */
public class Clazz extends BaseBean implements SelectObject
{

    private static final long serialVersionUID = -155683202808224333L;
    /**
     * 班级id
     */
    private long classId;

    /**
     * 班级名称
     */
    private String className;

    /**
     * 班级头像
     */
    private String classAvatar;

    /**
     * 班级类型
     */
    private int classType;

    /**
     * 班级描述
     */
    private String classDesc;


    /**
     * 学段
     */
    private int period;


    /**
     * 学段名
     */
    private String periodName;


    /**
     * 年级
     */
    private int gradeId;


//    /**
//     * 年级名
//     */
//    private String gradeName;



    /**
     * 创建人姓名
     */
    private String roomUserName;




    /**
     * 创建人ID
     */
    private int roomUserID;

    /**
     * 班级人数
     */
    private int classMemberNum;



    /**
     * 创建时间
     */
    private String createDate;

    /**
     * 学校
     */
    private SchoolDetail school;


    /**
     * 班级成员
     */
    private List<Member>  member;

    /**
     * 班级成员 对应不同接口解析，后台key值不规范
     */
    private List<Member>  members;


    private  String  SchoolName;

    private int SchoolID;

    private String schoolArea;

    public String getSchoolArea() {
        return schoolArea;
    }

    public void setSchoolArea(String schoolArea) {
        this.schoolArea = schoolArea;
    }

//    public void setSchoolId(int schoolId) {
//        this.schoolId = schoolId;
//    }


    public void setSchoolID(int schoolID) {
        SchoolID = schoolID;
    }

    public int getSchoolID() {
        return SchoolID;
    }

    //    public int getSchoolId() {
//        return SchoolID;
//    }

    public long getClassId()
    {
        return classId;
    }

    public void setClassId(long classId)
    {
        this.classId = classId;
    }

    public String getClassName()
    {
        return className;
    }

    public void setClassName(String className)
    {
        this.className = className;
    }

    public String getClassAvatar()
    {
        return classAvatar;
    }

    public void setClassAvatar(String classAvatar)
    {
        this.classAvatar = classAvatar;
    }

    public int getClassType()
    {
        return classType;
    }

    public void setClassType(int classType)
    {
        this.classType = classType;
    }

    public SchoolDetail getSchool()
    {
        return school;
    }

    public void setSchool(SchoolDetail school)
    {
        this.school = school;
    }

    public String getRoomUserName()
    {
        return roomUserName;
    }

    public void setRoomUserName(String roomUserName)
    {
        this.roomUserName = roomUserName;
    }

    public int getGradeId()
    {
        return gradeId;
    }

    public void setGradeId(int gradeId)
    {
        this.gradeId = gradeId;
    }


    public int getClassMemberNum() {
        return classMemberNum;
    }


    public void setClassMemberNum(int classMemberNum) {
        this.classMemberNum = classMemberNum;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }


    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public String getPeriodName() {
        return periodName;
    }


    public void setPeriodName(String periodName) {
        this.periodName = periodName;
    }


    public int getRoomUserID() {
        return roomUserID;
    }


    public void setRoomUserID(int roomUserID) {
        this.roomUserID = roomUserID;
    }


    public String getClassDesc() {
        return classDesc;
    }


    public void setClassDesc(String classDesc) {
        this.classDesc = classDesc;
    }


//    public String getPeriodName() {
//        return gradeName;
//    }
//
//    public void setPeriodName(String gradeName) {
//        this.gradeName = gradeName;
//    }

    public void setSchoolName(String schoolName) {
        SchoolName = schoolName;
    }

    public String getSchoolName() {
        return SchoolName;
    }

    public void setMembers(List<Member> members) {
        this.members = members;
    }

    public List<Member> getMembers() {
        return members;
    }

    //    public void setMemberList(List<Member> memberList) {
//        this.memberList = memberList;
//    }
//
//    public List<Member> getMemberList() {
//        return memberList;
//    }


    public void setMember(List<Member> member) {
        this.member = member;
    }

    public List<Member> getMember() {
        return member;
    }

    @Override
    public boolean equals(Object o)
    {
        return getClassId() == ((Clazz) o).getClassId();
    }

    @Override
    public long getId()
    {
        return getClassId();
    }

    @Override
    public String getName()
    {
        return getClassName();
    }
}
